package com.hoshiicloud.purchase.feign.hystrix;

import com.hoshiicloud.purchase.feign.IdGeneratorService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * 公司微服务FeignClient熔断器
 *
 * @author : yangcheng
 * @date : 2019/5/6 14:23
 * @mail : maiboyc@163.com
 **/
@Service
public class HystrixIdGeneratorFeignFallback implements IdGeneratorService {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public String queryGeneratorId() {
        logger.error("hoshiicloud-purchase服务Feign调用hoshiicloud-id-generator服务{}异常", "IdGeneratorService.queryGeneratorId");
        return null;
    }
}
